<template>
  <view class="bgc-back" style="min-width: 100vw; min-height: 100vh">
    <view v-if="institutionTypeListVOList && institutionTypeListVOList.length > 0" class="pb10 ph10">
      <SubItem v-for="item in institutionTypeListVOList" :key="item.id" :target="item" />
    </view>
    <u-empty v-else text="暂时还没有规章制度" :src="noprodImg" iconSize="300" />
  </view>
</template>
<script>
import { BASE_URL } from "@/settings";
import request from "@/utils/request";
import { mapState } from "vuex";
import SubItem from "./zhiduListItem.vue";
export default {
  name: "",
  components: { SubItem },
  mixins: [],
  props: {},
  data() {
    return {
      noprodImg: require("./noprod.png"),
      allCount: null,
      hadCount: null,
      notCount: null,
      institutionTypeListVOList: []
    };
  },
  computed: {
    ...mapState(["site", "register"]),
    companyId() {
      return this.site.companyId;
    }
  },
  watch: {},
  created() {
    request({
      url: `${BASE_URL}/hr/api/v1/institutions/selectOpenByCompanyId`,
      data: {
        companyId: this.companyId
      }
    })
      .then(res => {
        this.institutionTypeListVOList = res;
      })
      .catch(err => {
        console.log(err);
      });
  },
  mounted() {},
  methods: {}
};
</script>
<style lang="scss"></style>
